#include "bullet.h"
#include "main.h"

bool Bullet_C::Update(float dt)
{
	m_X += m_XSpeed*dt;
	if( m_X > SCREEN_WIDTH || m_X < 0 )
		return true;
	else
		return false;
}

void Bullet_C::Draw()
{
	if( m_XSpeed >0 )
		fnt->printf(m_X,m_Y,HGETEXT_LEFT,">");
	else
		fnt->printf(m_X,m_Y,HGETEXT_RIGHT,"<");
}